from pyecharts.charts Line
from Line

#创建一个折线图对象
line=Line()
line.add_xaxis(["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"])
line.add_yaxis("商家A",[5,20,36])

#通过render方法，将代码生成为图像
line.render()